<template>
    <el-input-number  v-bind="$props" :key="key" :debounce="500" @change="handleChange"></el-input-number>
    <!-- <el-input v-bind="$props" :key="key" @keyup="handleUp"></el-input> -->
</template>
<script>
import * as ui from 'l-element'
let props = Object.assign({}, ui.default.Input.props)
export default {
  props: {
    ...props
  },
  data () {
    return {
      key: Math.random()
    }
  },
  methods: {
    handleChange (value) {
      var result = parseInt((value * 10000) / 100) / 100
      this.$el.value = result
      this.$emit('change', result).$emit('input', result)
      this.key = Math.random()
    }
  }
}
</script>
